package com.ruyuan.eshop.common.enums.construction;

import com.ruyuan.eshop.common.exception.BaseErrorCodeEnum;

/**
 * 审核相关的异常枚举码
 * @author : zhonghuashishan
 *
 */
public enum AuditExceptionCode implements BaseErrorCodeEnum {
    /**
     * SQL执行异常
     */
    AUDIT_SQL("1000", "SQL执行异常"),
    /**
     * 用户的审核权限不足
     */
    USER_AUDIT_RULE_NULL("1001", "用户的审核权限不足"),
    /**
     * 未查询到审核工单
     */
    USER_AUDIT_INFO_NULL("1002", "未查询到审核工单");

    public final String errorCode;
    public final String errorMsg;

    AuditExceptionCode(String errorCode, String errorMsg) {
        this.errorCode = errorCode;
        this.errorMsg = errorMsg;
    }
    @Override
    public String toString() {
        return errorCode + "-" + errorMsg;
    }


    @Override
    public String getErrorCode() {
        return null;
    }

    @Override
    public String getErrorMsg() {
        return null;
    }
}
